<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/resource/common/taglib.jspf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>添加</title>
<%@include file="/resource/common/jquery.jspf"%>
<%@include file="/resource/common/commonCss.jspf"%>
<%@include file="/resource/common/bootstrap.jspf"%>
<%@include file="/resource/common/bootstrap-fileinput.jspf"%>
<%@include file="/resource/common/validate.jspf"%>
<script type="text/javascript" src="${ctxStatic}/plugins/jquery/jquery.base64.js"></script>

</head>
<body>
	<div id="body-wrapper">
		<div id="main-content">
			<div class="content-box-content">
				<div class="tab-content default-tab" id="tab1" >
					<div class="row">
						<div class="col-md-12 col-sm-12 col-xs-12" >
							<div class="form-group">
								<input type="hidden" id="place" name="place" value="${place }" /> 
								<input type="hidden" id="asyncResult" name="asyncResult" value="-1" /> 
								<input type="hidden" id="asyncResultData" name="asyncResultData" value="-1" /> 
								<input type="hidden" id="asyncResultError" name="asyncResultError" value="-1" />
			                    <input id="files" name="files" class="file-loading" type="file" multiple />
			                </div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<script type="text/javascript">
	var PATH = "${ctx}";
	$(document).ready(function() {
		$("#files").bootstrapImageInputUtils({
			url : "uploadSaveReturnJson.do?type=${type}",
			allowedFileExtensions : ['jpg', 'gif', 'png'],
			callBackPreview : "${place}",
            maxFileCount:20
		});

	});
	function asyncResultPlace(){
		return $("#place").val();
	}
	function asyncResult(){
		return $("#asyncResult").val();
	}
	function asyncResultError(){
		return $("#asyncResultError").val();
	}
	function asyncResultDataJson(){
		return $("#asyncResultData").val();
	}
</script>
</body>
</html>